package com.business.system.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.business.system.vo.AuditBusinessVo;
import com.common.entity.TbBusiness;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author pgx
 * @since 2022-08-31
 */
@Mapper
public interface TbBusinessMapper extends BaseMapper<TbBusiness> {

    IPage<Map> selectBusinessMsg(Page<TbBusiness> page, @Param("ew") QueryWrapper<TbBusiness> queryWrapper);

    List<Map> detaileMsg(Integer id);

    Integer insertBusiness(AuditBusinessVo auditBusinessVo);

    Integer insertAuditMsg(AuditBusinessVo auditBusinessVo);

    IPage<Map> findAuditMsg(Page<TbBusiness> page, @Param("ew") QueryWrapper<TbBusiness> queryWrapper);

    Integer setAuditMsg02(@Param("sname") String sname,@Param("name") String name);

    Integer setAuditMsg03(@Param("sname") String sname,@Param("name") String name,@Param("reasonMsg") String reasonMsg);

    TbBusiness findBusinessMsg(String bid);

    Integer updateMoney(@Param("newMoney") Double newMoney, @Param("bid") String bid);
}
